/*	
 *	Created By: Matthew Hoyes
 *	Date: May 03, 2010
 *
 =========================================================
						- Main.cpp -

 * Testing and playing the game		

 =========================================================
 */


#include <iostream>
using namespace std;

#include "Card.h"
#include "Deck.h"

int main()
{
	cout << endl;

	// Declaring Card Objects
	Card c1, c2;

	// Declaring Deck Objects
	Deck deck1, deck2;
	
	// populates deck with appropriate values
	deck1.generate_Deck();
	
	for(int i = 0; i < cards_In_Deck; ++i)
	{
		c1.suitHeader(i);

		cout << "\nBefore...";
		deck1.displayDiscard(i);
		
		c1 = deck1[i];
		deck1.setElement(i, c2);
		
		cout << "c1.DisplayCard(): ";
		c1.DisplayCard();							

		deck1.displayDiscard(i);
		
		if(i % 2 == 1 && i != cards_In_Deck - 1)
		{
			system("pause");
			system("cls");
			cout << endl;
		}
	}

	return 0;
}